package com.github.phoenics.bazooka.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.phoenics.bazooka.dao.StudentDao;
import com.github.phoenics.bazooka.domain.po.Room;
import com.github.phoenics.bazooka.domain.po.Student;

/**
 * @author Phoenics Chow
 * on 2019年02月10日
 */
public class StudentService extends ServiceImpl<StudentDao, Student> {
    private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(StudentService.class);
    public Room takeRoom(Student student){
        return this.baseMapper.findRoomById(student.getId());
    }

}
